--[[ Copyright 2012, Chris Ho                               ]]--
--[[ MIT License (Please read the LICENSE file for details) ]]--

-- A game piece is any in-game object with an ID.
-- id: game piece ID
-- what: the object type
GamePiece = {};

-- Our internal game piece object types:
OBJECT_GENERIC = 0;
OBJECT_CREATURE = 1;
OBJECT_PLAYER = 2;
OBJECT_PET = 3;

-- Generate a new game piece template.
function GamePiece.Create(_id)
  return { id = _id, what = OBJECT_GENERIC };
end
